<?php
$username=trim($_GET["username"]);
include("../../Connections/connect_admin.php");
$query="SELECT * FROM `user` u WHERE u.UserName='$username'";
$result=mysql_query($query);
$response=array();
if(mysql_num_rows($result)>0)
{
	 $response = array(
        'ok' => true, 
        'msg' => "Username is existed ");
}
else
{
	 $response = array(
        'ok' => false, 
        'msg' => "Username can use ");
}
echo json_encode($response);
?>